package com.tutos.dao;

import java.util.List;
import com.tutos.model.Materia;

public class MateriaDAO extends BaseDAO<Materia>{

	@Override
	public List<Materia> getAll() {
		return search("getAllMaterias");
	}
	
	public List<Materia> getMateriaByName(String name){
		QParameter<String, String> parameter = new QParameter<String, String>("name",name);
		return search("getMateriaByName", parameter);
	}

}
